<?php
namespace app\index\controller;

use think\Controller;
use app\admin\model\AboutHelp;
use app\admin\model\AboutUs;

class About extends Controller
{
    public function aboutUs(){
        $whereAA['id']=1;
        $data=AboutUs::where($whereAA)->find();
        return json(['code'=>1,'data'=>$data]);
    }
    public function aboutHelp(){
        $page=input('pageid');
        $data= AboutHelp::page($page,10)->order('con_sort desc')->select();
        $count = AboutHelp::count();
        $zongpage=ceil($count/10);
        return json(['code'=>1,'msg'=>'返回成功','count'=>$count,'zongpage'=>$zongpage,'data'=>$data]);
    }


    
}
